package top.guagua.core.util;

public class BussinessException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5009738370629441055L;

	/*
	 * 错误码
	 */
	private String code;
	
	/*
	 * 错误参数
	 */
	private Object[] errParams;
	
	public String getCode() {
		return code;
	}
	
	public Object[] getErrParams() {
		return errParams;
	}
	
	public BussinessException(String code) {
		super();
		this.code = code;
	}

	public BussinessException(String code, Object[] errParams) {
		super();
		this.code = code;
		this.errParams = errParams;
	}

	public BussinessException(String code, String message) {
		super(message);
		this.code = code;
	}

	public BussinessException(String code, Object[] errParams, String message) {
		super(message);
		this.code = code;
		this.errParams = errParams;
	}
	
	public BussinessException(String code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public BussinessException(String code, Object[] errParams, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
		this.errParams = errParams;
	}
	
	public BussinessException(String code, Throwable cause) {
		super(cause);
		this.code = code;
	}

	public BussinessException(String code, Object[] errParams, Throwable cause) {
		super(cause);
		this.code = code;
		this.errParams = errParams;
	}
	
}
